#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#


price, nums = 0, 0
with open("a.txt", "r", encoding='utf-8') as read_f:
    for i in read_f.readlines():
        shop_price = list(i.split(" "))[1]
        shop_nums = list(i.split(" "))[2].lstrip()
        price += int(shop_price)
        nums += int(shop_nums)
print("商品价格: {:^,.2f}  商品数量: {}".format(price, nums))
